import App from './App'
// #ifndef VUE3
import Vue from 'vue'
import Request from '@/common/request.js'
Vue.prototype.$Request = Request
import Cookies from '@/common/cookies.js';
Vue.prototype.$cookie = Cookies;
import * as RongIMLib from '@rongcloud/imlib-next'
Vue.prototype.$RongIMLib = RongIMLib;
import utils from '@/common/util.js'
Vue.prototype.$util = utils
RongIMLib.init({
	appkey: 'k51hidwqkzvub'
}); // 替换为实际的 App Key 
import store from './store' // vuex 状态管理器
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif